package com.trainoo.domain;

/**
 * Created by Administrator on 2017/6/5.
 */
public enum ResultEnum {

    SUCCESS(0, "成功"),
    PRIMARY_SCHOOL(100, "你可能還在上小學吧"),
    MIDDLE_SCHOOL(101, "你可能在上初中了"),
    UNKONW(-1, "未知錯誤")
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
